/**
 * Vuex状态管理
 */
import { createStore } from 'vuex'
import mutations from './mutations'
import storage from '../utils/storage'

const state = {
    userInfo : "" || storage.getItem("userInfo"), // 获取用户信息
    deptList: "" || storage.getItem("deptList"),
}
export default createStore({
    state,
    mutations
})